home *** CD-ROM | disk | FTP | other *** search
/ Computer Shopper 235 / Issue 235 - September 2007 - DPCS0907DVD.ISO / Microsoft / Expression Blend / Blend.en.msi / Sparkle.GPiano.Keyframe.cs.en < prev    next >
Encoding:
Text File  |  2007-03-19  |  1.4 KB  |  33 lines

  1.  ■namespace GrandPiano
  2. {
  3.     using System;
  4.     /// <summary>
  5.     /// Data Model for each keyframe of the song.
  6.     /// It records the time and the note played.
  7.     /// </summary>
  8.     public class Keyframe
  9.     {
  10.         private TimeSpan time;
  11.         private String note;
  12.         public Keyframe(TimeSpan time, String note)
  13.         {
  14.             this.time = time;
  15.             this.note = note;
  16.         }
  17.         public TimeSpan Time
  18.         {
  19.             get { return this.time; }
  20.             set { this.time = value; }
  21.         }
  22.         public String Note
  23.         {
  24.             get { return this.note; }
  25.             set { this.note = value; }
  26.         }
  27.     }
  28. }